package com.zsrt.java.day20170113.lh.daily.ch04;

import static org.junit.Assert.*;

import org.junit.Test;

public class SxTest {
	
	public static void main(String[] args) {
		
		CommonCar c=new CommonCar();
		SwimCar s=new SwimCar(c);
		
		s.drive();
	}
	
	
	@Test
	public void testName() throws Exception {
		CommonCar c=new CommonCar();
		SwimCar s=new SwimCar(c);
		FlyCar f=new FlyCar();
		f.SetCar(s);
		f.drive();
		
		
	}

}
